﻿using QntPlatform.Strategy.S2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QntPlatform.Model
{
   public class StrategyInfo:EntityBase<string>
    {
        public string Name { get; set; }
        public string Remark{get;set;}
        //对应类名class:XXX
        public string ContentType{get;set;}
        //策略参数列表,json
        public string ArgInfosStr{get;set;}
        public void SetArgInfosStr(ArgInfo[] infos){
            StrParse pas=new StrParse();
            ArgInfosStr= pas.ToText(infos);
        }
        public ArgInfo[] GetArgInfosByStr(){
             StrParse pas=new StrParse();
            return pas.Parse<ArgInfo[]>(ArgInfosStr);
        }
    }
}
